package drawEngine;

import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JFrame;

import controllers.Map;
import controllers.Point;
import ships.Destroyer;

public class GameTest extends JFrame{

	private static final long serialVersionUID = 1L;
	private DrawPanel contentPane;

	/**
	 * Launch the application.
	 */
	
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GameTest frame = new GameTest();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public GameTest() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 600, 600);
		
		contentPane = new DrawPanel();
		contentPane.setBackground(Color.black);
				
		Destroyer des = new Destroyer(new Point(55, 55));
		
		Map.getMap().addDrawAbleObject(des);
		
		setContentPane(contentPane);
	}
}
